//
//  HomeAreaAlertViewTableViewCell.m
//  ZJControlsClass
//
//  Created by mac on 2024/11/24.
//

#import "HomeAreaAlertViewTableViewCell.h"

@implementation HomeAreaAlertViewTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self){
        [self configUI];
    }
    return self;
}



-(void)configUI{
    
    [self.contentView addSubview:self.msgLabel];
    [self.contentView addSubview:self.gouImg];
    
    [self.msgLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(self.contentView);
        make.right.equalTo(self.contentView).with.offset(-ALIGN_WIDTH_PT(15));
    }];
    
    [self.gouImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView.mas_centerY);
        make.right.equalTo(self.contentView).with.offset(-ALIGN_WIDTH_PT(2));
        make.size.equalTo(@(CGSizeMake(ALIGN_WIDTH_PT(13), ALIGN_WIDTH_PT(13))));
    }];
    
    
}


#pragma mark -- 懒加载
-(UILabel *)msgLabel{
    if (!_msgLabel){
        _msgLabel = [UILabel new];
        _msgLabel.textColor = [UIColor blackColor];
        _msgLabel.font = FONT14;
        _msgLabel.textAlignment = NSTextAlignmentCenter;
    }
    return _msgLabel;
}
-(UIImageView *)gouImg{
    if (!_gouImg){
        _gouImg = [UIImageView new];
        _gouImg.image = [UIImage imageNamed:@""];
    }
    return _gouImg;
}




@end
